/**
 * Copyright (c) 2021 Choice, Inc.
 * All Rights Reserved.
 * Choice Proprietary and Confidential.
 */
package cn.ruleengine.web.function.idc;

import java.util.Set;

import javax.validation.Valid;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;

import cn.ruleengine.core.annotation.Executor;
import cn.ruleengine.core.annotation.Function;
import cn.ruleengine.core.annotation.Param;
import lombok.extern.slf4j.Slf4j;

/**
 * 不存在IDC编码
 * <p>入参不包含任何报告编码（ICD码）即返回 T <p/>
 *
 * @author <a href="mailto:danliang@myweimai.com">丹良</a>
 * @date 2021/7/28
 */
@Slf4j
@Function
public class NoneIdcFunction {

    @Executor
    public Boolean executor(@Valid @Param(value = "idcCodes", required = false) Set<String> idcCodes) {
        return CollectionUtils.isEmpty(idcCodes);
    }
}
